﻿using System.Collections;
using UnityEngine;

public class GameStart : MonoBehaviour {
    public static GameStart Instance;
    void Start()
    {
        Instance = GetComponent<GameStart>();

        ManagerStart();
    }

    void Update()
    {
        ManagerUpdate();
    }

    void OnDestroy()
    {
        ManagerOnDestroy();
    }

    private void ManagerStart()
    {
        BundleUpdateManager.Instance.Start();
    }

    private void ManagerUpdate()
    {
        LuaManager.Instance.Update();
        BundleUpdateManager.Instance.Update();
    }

    private void ManagerOnDestroy()
    {
        LuaManager.Instance.OnDestroy();
        BundleUpdateManager.Instance.OnDestroy();
    }
}
